package ferp.core.state;

import ferp.core.game.Game;
import ferp.core.game.Input;
import ferp.core.game.Settings;
import ferp.core.log.Log;
import ferp.core.player.Profile;

/**
 * User: igorgok
 * Date: 11/3/11 3:15 PM
 */
class Summarize extends State
{
  @Override
  public final int process(Game.Listener listener, Profile profile, Game g, Settings settings, Input input) throws Game.Error
  {
    Log.debug(Log.TAG, "summarizing " + g.mode() + " round");

    // next state (by default) will be "GIO"
    g.set(State.gio);

    // do the summarizing
    return g.mode().summarize(listener, g, settings);
  }
}
